package com.fedming.bottomnavigationdemo.Util;

import java.util.Date;

public class TimeUtil {
    public TimeUtil(){

    }
    public static Integer DayNight(){
        Date date = new Date();
        Integer rightNowHour = date.getHours();
        if(rightNowHour>=8&&rightNowHour<23)
            return 1;
        else
            return 0;

    }
}
